<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/28
  Time: 下午 5:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>添加学生</title>
    <%--1.引入bs的css样式--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <%--2.引入jquery--%>
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-2.2.3.min.js"></script>
    <%--3.引入bs的js库--%>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
    <style>
        div.container{
            width: 600px;
        }
    </style>
</head>
<body>
  <div class="container">
    <div class="page-header">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <h3>添加学生</h3>
                </h3>
            </div>
            <div class="panel-body">
                <form action="${pageContext.request.contextPath}/student?cmd=add" method="post" class="form-horizontal" role="form">
                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">学生姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="stuname" placeholder="学生姓名">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">学生性别</label>
                        <div class=" col-sm-10">
                            <div class="checkbox">
                                <label>
                                    <input type="radio" name="sex" value="男">男
                                </label>
                                <label>
                                    <input type="radio" name="sex" value="女">女
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">学生年龄</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="age" placeholder="学生年龄">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">所在班级</label>
                        <div class="col-sm-10">
                            <select name="classno"  class="form-control">
                                <option value="0">所有班级</option>
                                <c:forEach items="${list}" var="c">
                                    <option value="${c.classno}">${c.classname}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10 ">
                            <div class="col-sm-5">
                                <button type="submit" class="btn btn-primary btn-block">添加</button>
                            </div>
                            <div class="col-sm-5">
                                <button type="submit" class="btn btn-danger btn-block">重置</button>
                            </div>


                        </div>
                    </div>
                </form>
            </div>
            <div class="panel-footer text-right">
                泽林教育2010-2020.
            </div>
        </div>
    </div>
</div>

</body>
</html>
